import hasPermi from './hasPermi'
import dialogDrag from './dialogDrag'
const install = function (Vue) {
  Vue.directive('hasPermi', hasPermi) //v-hasPermi
  Vue.directive('dialogDrag', dialogDrag) //v-dialogDrag
}

if (window.Vue) {
  window['hasPermi'] = hasPermi
  window['dialogDrag'] = dialogDrag
  Vue.use(install) // eslint-disable-line
}

export default install
